




OrFilter( PacketFilter * filter1, PacketFilter * filter2) {
	filters.push_back( filter1);
	filters.push_back( filter2);
}


void addFilter(PacketFilter * filter) {
	if (filter == NULL) {
		return;
	}
	filters.push_back( filter);
}


bool accept(Packet * packet) {
	for (int i = 0; i < filters.size(); i++) {
		if (filters[i]->accept(packet)) {
			return true;
		}
	}
	return false;
}

